package com.bor.gb.rest.util;

import com.bor.gb.db.domain.Guide;
import org.json.JSONObject;

/**
 * Created by Bogdan Popadynets on 2/12/15.
 */
public class ResponseUtils {

    public static String guideVotesToJson(Guide guide){
        JSONObject object = new JSONObject();

        object.put("plus", guide.getPlusIds().size());
        object.put("minus", guide.getMinusIds().size());
        return object.toString();
    }
}
